package com.kate.mall.oauth.feign;

import com.kate.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/11/1 09:25
 */
@FeignClient("member-center")
public interface NdmallMemeberFeignClient {
    @GetMapping("/user/sysoauthclient/info/{clientId}")
    R getClientById(@PathVariable("clientId") String clientId);

    @GetMapping("/user/member/list")
    R queryMemeberByUsername(@RequestParam(value = "username") String username);
}
